package com.telit.firecommand.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.telit.firecommand.entity.CommSpreadAnalysis;

import java.util.List;

/**
 * @Author:zhangwei
 * @Description:
 * @Time:Created on 2021/9/14 15:20
 */
public interface SpreadAnalysisService extends IService<CommSpreadAnalysis> {

    /**
     * 新增蔓延分析表信息
     * @param spreadAnalysis
     */
    Long add(CommSpreadAnalysis spreadAnalysis);

    /**
     * 分页条件蔓延分析表信息
     * @param current
     * @param size
     * @param spreadAnalysis
     * @return
     */
    IPage<CommSpreadAnalysis> selectByPage(Integer current, Integer size, CommSpreadAnalysis spreadAnalysis);

    /**
     * 无分页条件查询蔓延分析表信息
     * @param spreadAnalysis
     * @return
     */
    List<CommSpreadAnalysis> selectByNoPage(CommSpreadAnalysis spreadAnalysis);

    /**
     * 修改蔓延分析表信息
     * @param spreadAnalysis
     */
    void updateData(CommSpreadAnalysis spreadAnalysis);

    /**
     * 根据ID删除蔓延分析表信息
     * @param id
     */
    void deleteById(Long id);

    /**
     * 根据火情ID查询蔓延分析信息
     * @param fireId
     */
    CommSpreadAnalysis getInfoByFireId(Long fireId);
}
